package com.jdrx.sw.sewage.beans.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "水质化验报表", description = "水质化验报表")
@Data
public class WaterQualityTestPO {
	private Long id;
	
	@ApiModelProperty(value = "化验日期yyyy-MM-dd")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern = "yyyy-MM-dd")
	private LocalDate testDate;
	
	@ApiModelProperty(value = "报表名称=模板名字+年月日时分秒")
	private String name;
	
	@ApiModelProperty(value = "化验人员")
	private String tester;
	
	@ApiModelProperty(value = "文档链接")
	private String attach;
	
	@ApiModelProperty(value = "预留字段，文档json")
	private String data;
	
	@ApiModelProperty(value = "创建日期yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createAt;
	
	private Long createBy;
	
	@ApiModelProperty(value = "修改日期yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateAt;
	
	private Long updateBy;
	
	@ApiModelProperty(value = "删除标记：0-未删除，1-已删除")
	private Integer deleteFlag;
	
	@ApiModelProperty(value = "模板id")
	private Long templateId;
	
	@ApiModelProperty(value = "化验日期开始yyyy-MM-dd", hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern = "yyyy-MM-dd")
	private LocalDate startTestDate;
	
	@ApiModelProperty(value = "化验日期结束yyyy-MM-dd", hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern = "yyyy-MM-dd")
	private LocalDate endTestDate;
}